{% load static %}
<!DOCTYPE html>
<html lang="en">

<head>
    <title>首页 | index</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="{% static 'css/button.css' %}">
    <link rel="stylesheet" type="text/css" href="{% static 'css/footer.css' %}">
    <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
    <script src="{% static 'js/button.js' %}"></script>
    <meta name="baidu-site-verification" content="code-fGhvmsNKDv"/>

</head>

<body>
<!-- 导航栏 -->
<div class="container" style="margin-top:15px">

    <nav class="navbar navbar-expand-lg navbar-light bg-light">
        <a class="navbar-brand" href="#">IBLOG</a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
                aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>

        <div class="collapse navbar-collapse" id="navbarSupportedContent">

            <ul class="nav nav-pills mr-auto">
                <li class="nav-item">
                    <a class="nav-link active" href="{% url 'article:index' %}">博客首页</a>
                </li>
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#">文章分类</a>
                    <div class="dropdown-menu">
                        <a class="dropdown-item" href="#">分类一</a>
                        <a class="dropdown-item" href="#">分类二</a>
                        <a class="dropdown-item" href="#">分类三</a>
                    </div>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="#">About Me</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="#">友链</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="{%  url 'bloguser:user_center' %}">个人中心</a>
                </li>

            </ul>


            <form class="form-inline my-2 my-lg-0">
                <input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
                <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
            </form>

        </div>
    </nav>

    <br>
    <div class="row ">
        <h3 class="text-center">
            <p class="text-center"> 不好好学习，你就会像我一样啥也不会。<small class="text-warning">好好学习没有错的</small></p>
        </h3>
    </div>
    <hr>
</div>

<!-- 内容 -->


<div class="container text-center">

    {% for article in all_article %}
        <div class="row" style="margin-left:10px">
            <a href="{% url 'article:article_detail' article.id %}" class="text-muted">
                <h5>{{ article.art_title }}</h5>
            </a>
        </div>
        <div class="row" style="margin-left:10px">
            <p>
                {{ article.created_time }}
            </p>
        </div>
        <hr class="d-sm-none" style="border-top: 2px dashed rgb(242, 242, 242);">
    {% endfor %}

</div>


<!-- 向上按钮 -->
<button type="button" id="BackTop" class="toTop-arrow" style="z-index: 100;"></button>

<!-- 新增两个 div 容器 -->
<div id="wrapper">
    <div id="push"></div>
</div>

<div class="container text-center">
    <!-- 分页 -->
    <ul class="nav justify-content-center">
        <ul class="pagination ">

            <li class="page-item">
                <a class="page-link" href="#" aria-label="Previous">
                    <span aria-hidden="true">&laquo;</span>
                </a>
            </li>
            <li class="page-item active"><a class="page-link" href="#">1</a></li>
            <li class="page-item"><a class="page-link" href="#">...</a></li>
            <li class="page-item"><a class="page-link" href="#">3</a></li>
            <li class="page-item"><a class="page-link" href="#">...</a></li>
            <li class="page-item"><a class="page-link" href="#">100</a></li>
            <li class="page-item">
                <a class="page-link" href="#" aria-label="Next">
                    <span aria-hidden="true">&raquo;</span>
                </a>
            </li>
        </ul>
    </ul>
    <p>Page</p>
</div>


<footer id="footer">
    <div class="container">
        <hr style="margin: 0;">
    </div>
    <nav class="navbar navbar-light mb-0" id="nav-footer" style="background-color: white">

        <div class="row col-12 justify-content-center font-size-xs">
            <div style="text-align: center; color: black;">
                <div class="mb-0">
                    <div id="show_time0">
                        <script>
                            setInterval("show_time0.innerHTML='CopyRight © 2019 ~'+new Date().getFullYear();", 1000);
                        </script>
                    </div>
                    ZXY iblog
                </div>
                <p class="mb-0">Powered by
                    <span class="mb-0">&nbsp;<a href="https://beian.miit.gov.cn/">豫ICP备20007445号</a></span>
                </p>
            </div>
        </div>
        </div>
    </nav>
</footer>

</body>

</html>